package com.md.api.service;

import com.md.api.entity.CouponInfo;
import com.md.api.entity.HttpResult;
import com.md.api.entity.dto.ComposeCommitDto;
import com.md.api.entity.dto.ComposeQueryDto;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author liujie
 * @ClassName UserSevice
 * @Date 2022/11/9 11:34
 **/
public interface CouponService {

    HttpResult myCoupon(HttpServletRequest request, ComposeQueryDto queryDto);
    HttpResult couponPage( ComposeQueryDto composeQueryDto);
    HttpResult addCoupon( CouponInfo couponInfo);
    HttpResult deleteCoupon( CouponInfo couponInfo);
    HttpResult updateCoupon( CouponInfo couponInfo);

    HttpResult availableCoupon(HttpServletRequest request, ComposeCommitDto qto);

    HttpResult redeemCoupon(HttpServletRequest request, ComposeQueryDto qto);

    HttpResult redeem(HttpServletRequest request, ComposeCommitDto qto);
}
